package k2_oop.p6_relation.demo04;

public class TestDemo4 {
    public static void main(String[] args) {
        Dictionary dictionary = new Dictionary();

        dictionary.display();

        System.out.println(dictionary.addWord("apple", "苹果"));
        System.out.println(dictionary.addWord("banana", "橙子"));
        System.out.println(dictionary.addWord("peach", "西瓜"));

        dictionary.display();
        System.out.println(dictionary.addWord("peach", "桃子"));
        System.out.println(dictionary.addWord("watermelon", "西瓜"));
        System.out.println(dictionary.addWord("pear", "鸭梨"));
        System.out.println(dictionary.addWord("banana", "香蕉"));
        dictionary.display();

        System.out.println(dictionary.addWord("orange", "橙子"));
        System.out.println(dictionary.addWord("pineapple", "菠萝"));
        System.out.println(dictionary.addWord("strawberry", "草莓"));
        System.out.println(dictionary.addWord("grape", "葡萄"));
        System.out.println(dictionary.addWord("blueberry", "蓝莓"));
        System.out.println(dictionary.addWord("lemon", "柠檬"));
        System.out.println(dictionary.addWord("melon", "瓜"));

        dictionary.display();


        System.out.println(dictionary.transform("a"));
    }
}
